package com.woniuxy.service.impl;

import com.woniuxy.dao.AvatarDao;
import com.woniuxy.entity.Credential;
import com.woniuxy.entity.ResponseEntity;
import com.woniuxy.service.AvatarServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: 15489  <br/>
 * Date: 2022/3/14:10:33  <br/>
 * Description:
 */

@Service
public class AvatarServerimpl implements AvatarServer {
    @Autowired(required = false)
    AvatarDao avatarDao;
    @Override
    public ResponseEntity insert(Credential credential) {
                    int a=avatarDao.insert(credential);
                    if(a>0){
                        return  ResponseEntity.success("上传成功");
                    }else {
                        return  ResponseEntity.error("上传失败");
                    }
    }
}
